package com.ruoyi.zhgd.service;

import com.ruoyi.zhgd.domain.vo.NAsphaltDataWeightPageVo;
import com.ruoyi.zhgd.domain.vo.NAsphaltDataWeightVo;
import com.ruoyi.zhgd.domain.bo.NAsphaltDataWeightBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.zhgd.domain.vo.NAsphaltProduceWeightVo;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 沥青拌合站数据Service接口
 *
 * @author zyb
 * @date 2023-09-06
 */
public interface INAsphaltDataWeightService {

    /**
     * 查询沥青拌合站数据
     */
    Map<String, NAsphaltDataWeightVo> queryById(String id);

    /**
     * 查询沥青拌合站数据列表
     */
    TableDataInfo<NAsphaltDataWeightVo> queryPageList(NAsphaltDataWeightBo bo, PageQuery pageQuery);

    /**
     * 查询沥青拌合站数据列表
     */
    List<NAsphaltDataWeightVo> queryList(NAsphaltDataWeightBo bo);

    /**
     * 新增沥青拌合站数据
     */
    Boolean insertByBo(NAsphaltDataWeightBo bo);

    /**
     * 修改沥青拌合站数据
     */
    Boolean updateByBo(NAsphaltDataWeightBo bo);

    /**
     * 校验并批量删除沥青拌合站数据信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    /**
     * 生产数据监控重量分页
     * @param bo
     * @param pageQuery
     * @return
     */
    TableDataInfo<NAsphaltDataWeightPageVo> page(NAsphaltDataWeightBo bo, PageQuery pageQuery);

    /**
     * 沥青重量生产数据处理:实际/理论/差值, 是否只查询实际值
     * @param list
     * @param isQueryAll
     * @return
     */
    List<NAsphaltDataWeightVo> handleList(List<NAsphaltDataWeightVo> list, boolean isQueryAll, boolean czPer);

    /**
     * 总量校核
     * @param bo
     * @param pageQuery
     * @return
     */
    TableDataInfo<NAsphaltProduceWeightVo> produceWeight(NAsphaltDataWeightBo bo, PageQuery pageQuery);

    /**
     * 生产数据监控重量列表
     * @param bo
     * @return
     */
    List<NAsphaltDataWeightVo> weightList(NAsphaltDataWeightBo bo);

    /**
     * 生产数据监控重量列表-按天统计
     * @param bo
     * @return
     */
    Map<String, Object> dayWeightList(NAsphaltDataWeightBo bo);

    /**
     * 首页数据汇总
     * @param bo
     * @return
     */
    Map<String, Object> homeCount(NAsphaltDataWeightBo bo);
}
